﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ertekeles.aspx.cs" Inherits="NEMProjectWebApp.Pages.Oktato.ertekeles" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <center>
        <table>
            <tr>
                <td class="Righty">
                    <asp:Label ID="Label1" runat="server" Text="Tárgyak:"></asp:Label>
                </td>
                <td class="Lefty">
                    <asp:DropDownList ID="TargyakDropDownList" runat="server" Height="21px" 
                        Width="257px" DataSourceID="SqlDataSource1"
                        DataTextField="TargyNeve" DataValueField="T_ID" AutoPostBack="True">
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:masterConnectionString %>"
                        SelectCommand="SELECT [T_ID], [TargyNeve] FROM [Targy] ORDER BY [TargyNeve]">
                    </asp:SqlDataSource>
                </td>
            </tr>
            <tr>
                <td class="Righty">
                    <asp:Label ID="Label2" runat="server" Text="Javtandó Dolgozatok:"></asp:Label>
                </td>
                <td class="Lefty">
                    <asp:Button ID="DolgozatOpenBtn" runat="server" Text="Dolgozatok megnyitása" Width="253px"
                        PostBackUrl="~/Pages/Oktato/dolgozat.aspx" Height="21px" OnClick="DolgozatOpenBtn_Click" />
                </td>
            </tr>
            <tr>
                <td class="Center" colspan="2">
                    <asp:ListBox ID="DolgozatokListBox" runat="server" Style="text-align: center" Width="400px"
                        Height="152px" AutoPostBack="True" DataSourceID="SqlDataSource"></asp:ListBox>
                        <asp:SqlDataSource ID="SqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:masterConnectionString %>"
                            SelectCommand="SELECT * FROM Vizsga_Dolgozat ORDER BY VizsgaIdopont_ID">
                        </asp:SqlDataSource>
                    &nbsp;
                </td>
            </tr>
        </table>
    </center>
</asp:Content>
